package com.java.carousel.controller;

import com.java.carousel.service.CarouselService;
import com.java.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/carousel")
public class CarouselController {
    @Autowired
    private CarouselService carouselService;

    /**
     * 轮播图展示查询数据
     * @return 图片信息
     */
    @PostMapping("/list")
    public R list(){
        return carouselService.list();
    }
}
